//---------------------------------------------------------------
#include "A.h"
//---------------------------------------------------------------
#include <iostream>
//---------------------------------------------------------------
using namespace std;
//---------------------------------------------------------------
//---------------------------------------------------------------
void main()
{
	int* iLevel = new int[30];
	for (int i = 0; i < 30; i++)
		iLevel[i] = 0;
	/*
	iLevel[1] = -1;
	iLevel[6] = -1;
	iLevel[11] = -1;
	iLevel[16] = -1;
	iLevel[8] = -1;
	iLevel[13] = -1;
	iLevel[18] = -1;
	iLevel[23] = -1;
	iLevel[28] = -1;
	*/
	iLevel[8] = -1;
	iLevel[13] = -1;
	iLevel[17] = -1;
	iLevel[18] = -1;

	A a(iLevel, 5, 6);

	int* piPath = NULL;
	size_t iPathLenght = 0;
	vector<int> kPath;
	a.calculatePath(0, 0, 4, 5, piPath, iPathLenght, kPath);

	if (iPathLenght > 0)
	{
		/*
		for (size_t i = 0; i < iPathLenght; i++)
		{
			cout << piPath[i] << endl;
		}
		*/

		for (size_t i = 0; i < kPath.size(); i++)
		{
			cout << kPath[i] << endl;
		}

	}
	
}